teamcity.TimeLine = function() {
    teamcity.Loader.call(this, {"@href":"/httpAuth/api/projects/id:project10"});
}

teamcity.TimeLine.prototype.onLoaded = function(json) {
    var listElement = document.getElementById("list");

    var titlebar = document.createElement("div");
    titlebar.className = "project";
    titlebar.innerHTML = json["@name"];
    listElement.appendChild(titlebar);

    var buildTypes = json.buildTypes.buildType;
    for (var i = 0; i < buildTypes.length; i++) {
        var buildType = new teamcity.BuildType(buildTypes[i]);
        listElement.appendChild(buildType.element);
    }
};

teamcity.TimeLine.prototype.__proto__ = teamcity.Loader.prototype;


